package com.haiyuancloud.server.auth;

import com.haiyuancloud.common.security.starter.annotation.EnableHaiyuanCloudResourceServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author haiyuan
 */
@SpringBootApplication
@EnableRedisHttpSession
@EnableHaiyuanCloudResourceServer
@MapperScan({"com.haiyuancloud.auth.mapper"})
@ComponentScan(basePackages = {"com.haiyuancloud.*","com.baidu.fsg"})
public class HaiyuanAuthServerApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(HaiyuanAuthServerApplication.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
    }
}
